package cn.com.surker.lab.service.impl;

import cn.com.surker.enums.StateEnum;
import cn.com.surker.lab.entity.LabExpendOther;
import cn.com.surker.lab.service.ErpLabExpendOtherService;
import cn.com.surker.lab.vo.LabExpendOtherVo;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author luotao
 * @date 2024/11/5
 */
@Service
public class ErpLabExpendOtherImpl extends LabExpendOtherBaseImpl implements ErpLabExpendOtherService {

	@Override
	public List<LabExpendOtherVo> findFullList(String startTime, String endTime) {
		QueryWrapper<LabExpendOther> qwOther = new QueryWrapper<>();
		qwOther.eq("a.status", StateEnum.ENABLED.getCode());
		qwOther.ge("a.expend_time", startTime);
		qwOther.lt("a.expend_time", endTime);
		List<LabExpendOtherVo> labExpendOtherList = null;
		try {
			labExpendOtherList = labExpendOtherDao.findFullList(qwOther);
		} catch (Exception e) {
			e.printStackTrace();
		}
		return labExpendOtherList;
	}
}
